JVM architecture and jvm Architecture
JVM is an abstract computer. Based on the stack architecture, it has its own instruction set and memory management. It is the basis for Java cross-platform implementation.
The JVM's full name is Java Virtual Machine (Java VM), which shields the software and hardware differences associated with each computer platform.
in the coming days, I'll learn the JVM in the form of blogging, to make myself more aware of the Java
This series of articles is "Deep analysis of Javaweb Technology Insider" and "in-depth understanding of Java Virtual Machine" Summary, welcome everyone to spit together, progress together
, the Java stack is revoked by the JVM and the entire JVM exits.
Why the JVM chooses a stack-based architecture JVM执行字节码指令是基于栈的架构的,所有的操作数必须先入栈,然后根据指令的操作码选择从栈顶弹出若干个元素进行计算后再将结果入栈。JVM操作数可以存放在每一个栈帧中的一个本地变量中,即每个方法调用时就会给这个方法分配一个本地
This is a creation in
Article, where the information may have evolved or changed.
JVM Architecture and optimization
Write in front
Let's take a look at one interesting question:
Java Engineer interview, always ask some JVM how to optimize the problem, these really useful in development, work seven years has never been used in the project, and I have been a number
This article is intended to give a conceptual introduction to all of the students who want to learn about the JVM (Java Virtual machine), mainly on the components of the JVM and the mechanics and principles of their internal workings. Of course this article is just a simple introduction, will not involve too many complicated parameters and configuration, interested students can do more in-depth research, in
First, the life cycle of the JVMJVM instance: A standalone Java program that is a process-levelJVM execution Engine: the thread on which the user runs the program, which is part of the JVM instance
The birth of the JVM instance
When a Java program is started. A JVM instance is born, and any function that has public static void main (string[] args) c
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.0. PrefaceThe Java Virtual machine (Java Virtualmachine) implements the most important feature of the Java language: platform agnostic.Platform-agnostic principle: The compiled Java program (. class file) is executed by the JVM. The JVM masks information that is specific to the platform, allowing progr
visible to all threads and can be accessed by all threads .(4) Exception errorA Stackoverflowerror exception is thrown if the thread requests a stack depth that is greater than the depth allowed by the virtual machine.If the JVM stack can be dynamically extended (most JVMs are possible), the OutOfMemoryError exception is thrown when the extension fails to request enough memory.The JVM throws Java.lang.OutO
Original address: How JVM WORKS–JVM architecture?
The JVM (Java Virtual Machine) is the Run-time engine (Run-time engine) that is used to run the Java application. The JVM is the main method invoked in Java code. The JVM is part o
Java as an object-oriented, cross-platform language, its object, memory, etc. has been a difficult point of knowledge. And many of the concepts of the name look so similar, many people will be silly to divide the unclear. For example, the JVM memory structure, the Java memory model, and the Java object model we are going to discuss in this article are three distinct concepts, but many people are easily confused.It can be said that many advanced develo
The JVM is the entire Java Virtual machine (Java VM).Computing-centric architecture can be divided into the following sections:1. Instruction set: A set of commands that this computer can recognize as a machine language;2. Calculation unit: The function module which can identify and control the instruction execution;3. Addressing method: The number of addresses, the minimum address and maximum address range
. JMM defines some syntax sets that map to the Java language, which are keywords such as volatile, synchronized, and so on.Java Object ModelJava is an object-oriented language, and Java objects are stored in the JVM with a certain structure. The storage model for the Java object itself is called the Java object model.In the hotspot virtual machine, a Oop-klass Model is designed. OOP (Ordinary object Pointer) refers to a normal object pointer, and Klas
the new generation, but are directly allocated in the old generation. ②. A large array object, cut from the array without referencing external objects.
The memory size occupied by the old age is the value corresponding to-xmx minus the value corresponding to-xmn.
5. Program counters
It is used to indicate the row number of the bytecode executed by the current thread. In the virtual machine model, when the bytecode interpreter is working, it selects the next bytecode
, thread stack informationHeap Detail Summary informationDisplays summary information for heap dump, including heap basic information, environment, System properties, and threads on heap dumps.analysis of Class object in heapShows all classes used within the heap, as well as the number of instances and the size of their usage. The default is reversed by the number of instances.in-heap object instance detailsThe class can enter instance details for the specified class, including details for each
Java class is loaded into memory only when needed, and executed by the execution engine of the Java Virtual machine, and the execution engine is divided into four main ways of execution,The first, one-time interpretation of the code, that is, when the bytecode is reproduced in memory, every need will be re-parsed once,Second, instant parsing, which is reproduced into the memory of the bytecode will be parsed cost of machine code, and cached to improve reusability, but more memory consumption,Thi
Android system architecture, differences between JVM and DalvikVM, androiddalvikvm
I. System Framework
1. Anroid is roughly divided into four layers, five areas1) application layer (Applications)All applications installed on mobile phones belong to this layer.2) Application Framework)A large number of APIs are provided for developers. Some core Android applications use these Apis.3) Library)-Surface Manage
, there is also a constant pool, for the compilation period generated by a variety of literal and symbolic references, this part of the class load in the method area of the run-time constant pool storage.Direct Memory:is not part of the form data region, nor is it defined in the JVM specification. Because this part of the memory is frequently used, so also pay attention to. The introduction of the NIO class in JDK1.4 introduces the I/O mode based on c
JVM ClassLoader Architecture:A, Bootstrap classloader/Launcher class loader is primarily responsible for the core API or-xbootclasspath option specified in the Jdk_home/lib directory for the Jar wrapper into the job.B, Extension classloader/Extension class loader is primarily responsible for the jar package in the Jdk_home/lib/ext directory or the jar wrapper in the specified directory-djava.ext.dirs the workC, System classloader/class loader is mainl
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.